fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers
authorBen Hutchings <ben@decadent.org.uk>
Wed, 13 Apr 2016 20:48:06 +0000 (21:48 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 8 Sep 2024 18:29:08 +0000 (20:29 +0200)
Bug-Debian: https://bugs.debian.org/819725
Forwarded: https://lore.kernel.org/all/20160517133631.GF7555@decadent.org.uk/

This helps initramfs builders and other tools to find the full
dependencies of a module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch

fs/btrfs/super.c
fs/ext4/super.c
fs/jbd2/journal.c
fs/nfsd/nfsctl.c

index 9472dbde5f005b27f4893ec0472dad1dfc6eaa64..7c0867e24fa0398ee0c972547fb685c06e1f41a7 100644 (file)
@@ -2619,7 +2619,7 @@ late_initcall(init_btrfs_fs);
 module_exit(exit_btrfs_fs)
 
 MODULE_LICENSE("GPL");
-MODULE_SOFTDEP("pre: crc32c");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 MODULE_SOFTDEP("pre: xxhash64");
 MODULE_SOFTDEP("pre: sha256");
 MODULE_SOFTDEP("pre: blake2b-256");
index c682fb927b64b8a0fba027f32c27c968cbb8ed93..d0e207ebafff312cfd45865e1437652b89ebe2dc 100644 (file)
@@ -7416,6 +7416,6 @@ static void __exit ext4_exit_fs(void)
 MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
 MODULE_DESCRIPTION("Fourth Extended Filesystem");
 MODULE_LICENSE("GPL");
-MODULE_SOFTDEP("pre: crc32c");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(ext4_init_fs)
 module_exit(ext4_exit_fs)
index c8d9d85e0e871c0a6176d28fea74d156d8f1cfb9..615c3ca2a068ec2a6ef1f369c7bebbb3114d0bfa 100644 (file)
@@ -3219,6 +3219,7 @@ static void __exit journal_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(journal_init);
 module_exit(journal_exit);
 
index 0f9b4f7b56cd8819c64528a3f20cd3e9357f99b2..a916311338b93a04a453838b19495c79dfee060d 100644 (file)
@@ -2279,5 +2279,8 @@ static void __exit exit_nfsd(void)
 MODULE_AUTHOR("Olaf Kirch <okir@monad.swb.de>");
 MODULE_DESCRIPTION("In-kernel NFS server");
 MODULE_LICENSE("GPL");
+#ifdef CONFIG_NFSD_V4
+MODULE_SOFTDEP("pre: crypto-md5");
+#endif
 module_init(init_nfsd)
 module_exit(exit_nfsd)